import request from '@/utils/request'
// 查询列表
export function inventory_list(query) {
  return request({
    url: '/wms/inventory/list',
    method: 'get',
    params: query
  })
}

// 新增
export function inventory_add(data) {
  return request({
    url: '/wms/inventory/add',
    method: 'post',
    data: data
  })
}

// 修改
export function inventory_edit(data) {
  return request({
    url: '/wms/inventory/edit',
    method: 'put',
    data: data
  })
}


// 删除
export function inventory_delete(id) {
  return request({
    url: '/wms/inventory/' + id,
    method: 'delete'
  })
}
